// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './components/App';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-default/index.css';

import Raven from 'raven-js';
import RavenVue from 'raven-js/plugins/vue';

Raven.config('https://5da870e3f3de4b8fae1cd35d08b71b49@sentry.io/149412')
  .addPlugin(RavenVue, Vue)
  .install();

Vue.config.productionTip = false;
Vue.use(ElementUI);

import router from './routes/router.js'
import store from './store/index'

// router.redirect({
//   '*': '/user'
// });
// 挂载路由
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
